New macro with-temp-buffer-window and related fixes.
authormartin rudalics <rudalics@gmx.at>
Mon, 3 Sep 2012 08:54:25 +0000 (10:54 +0200)
committermartin rudalics <rudalics@gmx.at>
Mon, 3 Sep 2012 08:54:25 +0000 (10:54 +0200)
commit97f8d98f19b01a678d6d09d7fbde53813f52693e
tree0a6ab775ce6e3e6fbf6929d6ff07864d3899d181
parentc164935800940bc2b54d09da9190c2c98577adf3
New macro with-temp-buffer-window and related fixes.

* buffer.c (Fdelete_all_overlays): New function.

* window.el (temp-buffer-window-setup-hook)
(temp-buffer-window-show-hook): New hooks.
(temp-buffer-window-setup, temp-buffer-window-show)
(with-temp-buffer-window): New functions.
(fit-window-to-buffer): Remove unused optional argument
OVERRIDE.
(special-display-popup-frame): Make sure the window used shows
BUFFER.

* help.el (temp-buffer-resize-mode): Fix doc-string.
(resize-temp-buffer-window): New optional argument WINDOW.

* files.el (recover-file, save-buffers-kill-emacs):
* dired.el (dired-mark-pop-up): Use with-temp-buffer-window.
etc/NEWS
lisp/ChangeLog
lisp/dired.el
lisp/files.el
lisp/help.el
lisp/window.el
src/ChangeLog
src/buffer.c